﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace UtilsORM.MySqlData;

[Index("l_guid", Name = "idxdclguid")]
[Index("l_d_guid", Name = "idxdguid")]
[Index("l_key", Name = "idxkey")]
[Index("l_time", Name = "idxreturntime")]
[MySqlCharSet("utf8mb3")]
[MySqlCollation("utf8mb3_general_ci")]
public partial class iot_system_error_log
{
    [Key]
    public long l_id { get; set; }

    public string l_guid { get; set; }

    public string l_d_guid { get; set; }

    /// <summary>
    /// 响应回传信息
    /// </summary>
    [StringLength(1000)]
    public string l_msg { get; set; }

    /// <summary>
    /// 向应回传时间
    /// </summary>
    [Column(TypeName = "datetime")]
    public DateTime? l_time { get; set; }

    [Column(TypeName = "text")]
    public string l_remark { get; set; }

    /// <summary>
    /// ok,error
    /// </summary>
    [StringLength(50)]
    public string l_type { get; set; }

    /// <summary>
    /// 租户
    /// </summary>
    [StringLength(50)]
    public string l_c_guid { get; set; }

    /// <summary>
    /// 用户
    /// </summary>
    [StringLength(50)]
    public string l_cu_guid { get; set; }

    /// <summary>
    /// key
    /// </summary>
    public string l_key { get; set; }
}
